﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
using Entities;

namespace InsuranceVehicle.AdminSite
{
    public partial class ReportPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            EmployeeInfo emp = new EmployeeInfo();
            emp = (EmployeeInfo)Session["Employee"];

            //check authority
            if (emp.Department == 1)
            {
                Menu1.ShowElement = "all";
            }
            else
            {
                Menu1.ShowElement = "no";
            }
            VehicleDataAccess vda = new VehicleDataAccess();

            Repeater1.DataSource = vda.getListVehicleType();
            Repeater1.DataBind();
        }
    }
}